package cn.tedu._06notice.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

@Getter
@AllArgsConstructor //全参
@NoArgsConstructor  //无参
public enum StatusCode {
    //所有枚举类的实例都放在最上面;
    OPERATION_SUCCESS(2000,"操作成功"), //此处用逗号","
    OPERATION_FAILED(2001,"操作失败");
    private Integer state;
    private String message;
}
